﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Churchtoolkit.Shell.Views.RegistrationView"
    Title="RegistrationView" MasterPageFile="~/Shared/DefaultMaster.master" CodeBehind="RegistrationView.aspx.cs" %>

<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <table class="Details" cellpadding="5" cellspacing="0">
        <tr>
            <td class="header" colspan="3">
                <strong>Register</strong>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="First Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ID="vldreqFirstName" ControlToValidate="txtFirstName"
                    ErrorMessage="0001" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Last Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Display Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDisplayName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ID="vldreqDisplayName" ControlToValidate="txtDisplayName"
                    Text="*" ErrorMessage="0001" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Email"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ID="vldreqEmail" Text="*" Display="Dynamic"
                    ControlToValidate="txtEmail" ErrorMessage="0001" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="vldregukarEmail" ControlToValidate="txtEmail"
                    Text="*" ErrorMessage="0003" ForeColor="Red" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:CustomValidator runat="server" OnServerValidate="UnavailableMail_Validate" ErrorMessage="0006"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" Text="*" ID="vldreqPassword" ControlToValidate="txtPassword"
                    ErrorMessage="0001" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Password Confirmation" TextMode="Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassConf" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator runat="server" ControlToCompare="txtPassConf" ControlToValidate="txtPassword"
                    Text="*" ErrorMessage="0007" ForeColor="Red"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="footer">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:ValidationSummary runat="server" />
                        </td>
                        <td align="right" valign="top">
                            <asp:Button ID="btnRegister" runat="server" Text="Register" OnClick="Register_Click"
                                CssClass="button" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
